package cn.com.main;

import cn.com.utils.ClassScannerUtil;

import java.util.List;

/**
 * 类扫描仪
 *
 * @author LiuGuodong
 * @date 2023/10/07
 */
public class ClassScanner {

    public static void main(String[] args) {
        List<Class> classes = ClassScannerUtil.scanClassesSpring("cn.com.main"); // 替换成你要扫描的包名
        for (Class clazz : classes) {
            System.out.println(clazz.getName());
        }
        List<Class> classList = ClassScannerUtil.scanClassesFile("cn.com.main"); // 替换成你要扫描的包名
        for (Class clazz : classList) {
            System.out.println(clazz.getName());
        }
    }
}
